Part Number Hot Search : 
5SMC75A 21UHR ICS85301 SMS6GE5 BTS412B PM8312 65C10 MP6KE22A
Product Description
Full Text Search
 

To Download DS3900EVKIT Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Rev 1; 7/04
Serial Communications Module For Evaluation Kits
General Description
The DS3900 provides bidirectional communication with 2-wire and 3-wire devices using a PC's serial port. In addition, it can also be used as a general-purpose digital I/O interface with 11 I/O signals that can evaluate a wide variety of ICs. The DS3900 is intended for evaluation purposes only.
Features
Communicates from PCs to ICs Through a Serial Port Fast Communication to 2-Wire Devices Eleven General-Purpose Digital I/O Pins, Including SDA and SCL Built-in Pullup Resistors for SDA and SCL Minimize Required External Hardware
DS3900
Applications
Prototyping 2-Wire and 3-Wire Device Designs Evaluating 2-Wire and 3-Wire Devices Building Test Software for Systems Containing 2-Wire or 3-Wire Devices Communicating With ICs that Require up to 11 I/O Signals
Connection to Standard Prototyping Boards Possible Using Header Connectors Operates from 3.0V to 5.5V
Ordering Information
PART DS3900EVKIT DESCRIPTION DS3900 Module
DS3900 Photo
Pin Configuration
P1 P2 P3 (N.C.) RESET GND P4 P5 GND
DS3900 R1.0
U1 X1
C4
P11 / SDA P10 / SCL GND VCC P9 P8 P7 P6 R2 R3 JP2
C6
C1 SCL JP1 SDA
C5
Typical Operating Circuit appears at end of data sheet. ______________________________________________ Maxim Integrated Products 1
For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at 1-888-629-4642, or visit Maxim's website at www.maxim-ic.com.
Serial Communications Module For Evaluation Kits DS3900
RECOMMENDED OPERATING CHARACTERISTICS
(VCC = 3.0V to 5.5V, TA = +25C.)
PARAMETER Supply Voltage Input Logic 0 Input Logic 1 Supply Current RS232 Baud Rate SYMBOL VCC VIL VIH ICC (Note 1) (Note 2) (Note 2) VCC = 5V CONDITION MIN +3.0 0 0.8 x VCC 5.0 57600 TYP MAX +5.5 0.15 x VCC VCC UNITS V V V mA bps
Note 1: All voltages listed are with respect to ground. Note 2: Devices are only functionally tested; all of the DC parametric values listed are designed parameters.
Pin Description
PIN P1, P2, P4 TO P9 P3/PULSE P10 P11 RESET (N.C.) GND VCC FUNCTION General-purpose bit I/O with tristate I/O pin (input, totem-pole output driver) Pulse or general-purpose bit I/O with open-drain I/O pin (input, open-drain output driver) SCL (open-drain output when used as SCL) or general-purpose bit I/O with tristate I/O pin (input, totem-pole output driver) SDA (open-drain output or input when used as SDA) or general-purpose bit I/O with tristate I/O pin (input, totem-pole output driver) Do not connect (reset for microprocessor). This pin is controlled by application software through the serial port's DTR signal. Ground Terminals. All three ground terminals must be connected to ground for operation. Power Supply Terminal
2
_____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
DS3900 SERIAL COMMUNICATION MODULE VCC
VCC 2.2k SWITCH 4.7k 4.7k 330
N.C.
MAX3223 TRANSCEIVER
DB9 DTR TX RX N.C. R2IN R1IN T1OUT T1OUT R2OUT R1OUT T1IN T2IN
MICROPROCESSOR PULSE (P3) RESET SERIAL COMM SDA (P11) SCL (P10) P1, P2, P4-P9
LED PULSE
2-WIRE INTERFACE 8 GENERAL-PURPOSE DIGITAL I/O SIGNALS
PC
8
Figure 1. Functional Diagram
Detailed Description
The DS3900 communicates with ICs using a PC's serial port. It utilizes a MAX3223 RS232 transceiver to translate the serial port signal levels from 12V to acceptable levels for a microprocessor. The microprocessor is then able to communicate to the PC by using its universal asynchronous receiver transmitter. In addition to the serial communication channel that is routed through the MAX3223, the data terminal ready (DTR) signal is routed through the secondary channel to produce a control signal that can reset the DS3900 from software. The software-reset function primarily allows the PC to search its available serial ports to find the DS3900. After a reset occurs, the DS3900 writes a banner over the serial port that allows the PC to detect its presence. Once it has been detected, the PC sends simple 2-byte commands over the serial connection, which provides instruction and data for the DS3900 to communicate with 2-wire parts, or to read or write a specific pin of the DS3900. All of the pins, with the exception of P3, have tristate drivers. P3 has an open-drain output, and can be read as an input pin as well; however, its default function is a system pulse that provides a visual indication (through an LED) that the DS3900 is operating properly. The P3 pin defaults to a slow-pulsing output, but this can be disabled, enabling P3 as an I/O pin, or it can be adjusted to a faster pulse rate as an indicator for the application. Because it is rated to work with supply voltages ranging from +3.0V to +5.5V, the DS3900 operates from the
same voltage supply as the IC that it is controlling in most cases.
Resetting the DS3900
The DTR signal of the serial port (pin 4 of a DB9 connector) is routed through the second channel of the MAX3223 transceiver. DTR controls an NMOS, which is connected to the reset signal of the microprocessor. This allows the PC to hold the DS3900 in reset until it is ready for operation, or to reset the DS3900 in the event an error occurs. Although the reset signal is accessible through the DS3900's connector, it should be left disconnected so it can be controlled through software. When DTR transitions to ON, the DS3900 exits its reset state and executes its initialization code. The initialization routine writes a banner (see DS3900 Revisions section), "DSIO r2.0" over the serial connection to the PC, which can be used by the PC to identify that the DS3900 is present. After it has left the reset state, all of the DS3900 signals, except P3, are configured as inputs (the output drivers are disabled). P3 appears as an output and begins to pulse slowly. If the switches enable SDA's and SCL's pullups, those signals float high, and all the other pins float to an undetermined state if they are not being driven by external signals.
Designing Hardware to Utilize the Built-in Support for 2-Wire Devices
The DS3900 has custom firmware that enables fast communication to 2-wire devices. To utilize this firmware, connect the SCL bus to P10 and the SDA bus to P11. Additionally, it has built-in pullup resistors that can be utilized by turning both switches on (see Using
3
_____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
Integral Pullups section). This connects 4.7k resistors to both 2-wire buses. For designs that only use the DS3900 to communicate to 2-wire devices, the following items must be accounted for in the hardware design: 1) 2) 3) 4) Place the mating connectors on the circuit board (see Figure 5). Connect VCC and all three ground terminals. Connect the SCL bus to pin P10, and the SDA bus to P11 of the DS3900. If the application board does not have pullup resistors, turn the switches on to enable the onboard pullups; otherwise, turn the switches off to disconnect the integrated pullups. Optional: connect an LED to P3 for the pulse function (see Typical Operating Circuit). Drive the DS3900 with either evaluation software provided by Dallas Semiconductor or custom-designed software for the end application (see Writing Software to Interface with the DS3900 section). 4) 5) 3) Connect P1 through P11 to the application. If the application is using 2-wire devices in addition to the remaining bit I/O signals, make sure to reserve P10 and P11 for the 2-wire application. Use P3 only if the application is able to tolerate the pulse function until it is disabled. Optional: connect an LED to P3 for the pulse function (see Typical Operating Circuit). Write software to allow the DS3900 to communicate with the target IC.
Writing Software to Interface with the DS3900
The DS3900 interprets 2-byte instructions (see Table 1) sent from a PC to determine what to do. After a valid command is received, it will begin to execute the command. Upon completion, it will return any data associated with the command, plus a unique acknowledgement byte that informs the PC that the command completed successfully. If an invalid command was received or the command did not complete successfully, the DS3900 will return error code (0xFA). Because the DS3900 could return 0xFA as data, it is important that the PC software is aware of the amount of data that it should expect to be returned. For example, if a 2-wire read operation is performed and a signal byte, 0xFA, is returned, then the PC is receiving an error code because the 2-wire read command should return first the data, then the acknowledgement. If the data was 0xFA, the DS3900 would return 0xFA followed by the command acknowledgment 0xB2. DS3900 Revisions Revisions yielding significant changes and/or improvements can be tracked by reading the banner after a reset or by calling the Read Revisions command (0xC2). The Read Revisions command (added in Rev. 2.0) will return three bytes: the major revision, the minor revision, and a command acknowledgement (0xD2). For example, if the DS3900's revision is 2.0, it will return a major revision of 2, a minor revision of 0, and the command acknowledgement 0xD2. Knowing the revision allows the software to both utilize new functions that are not available in previous versions of the DS3900's firmware and to avoid using commands that are not present in prior versions. Although there are no plans to change the firmware at this time, Dallas Semiconductor reserves the right to change the firmware at any time without notice.
5) 6)
Designing Hardware to Utilize the GeneralPurpose Bit I/O Signals
Utilizing the DS3900 for general-purpose bit I/O is equally simple as using it for 2-wire applications. All of the I/O pins with the exception of P3 have tristate outputs. These signals can be written to a `0' or a `1', and they can be read as inputs. P3 has an open-drain output, and can also be read as input. Because it defaults to a pulsing output, P3 is generally connected to an LED as shown in the Typical Operating Circuit. Writing it to a `1' turns off the pulldown transistor, which turns the LED off, and writing it to a `0' turns the pulldown and the LED on. This can also be used as an open-collector I/O pin with an external pullup resistor and no LED, making the pin appear as a normal output. The pulse function can be disabled in software, but designs using P3 for I/O should be conscious that the DS3900 could attempt to blink P3 before the pulse function is disabled. As long as the IC connected to P3 is tolerant of this behavior, P3 can be used as an additional I/O. Additionally, designs using P10 and P11 should be conscious of the built-in pullup resistors that are intended for use with 2-wire devices (see Using Integral Pullups section for details). The general procedure for connecting the DS3900 for bit I/O applications is as follows: 1) Place the mating connectors on the circuit board (see Recommended PC Board Connection). 2)
4
Connect VCC and all three GND ground terminals.
_____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
Table 1. DS3900 Command Protocol
COMMAND Packet Write* 1ST BYTE SENT 0x8% % = number of bytes to write -1 0x9% % = number of bytes to read -1 0xA0 0xA1 2ND BYTE SENT Memory address followed by %+1 data bytes RETURNED BYTE(S) 0x8% Command Successful 0xFA Command Failed (%+1) Data bytes followed by 0x9% Command Successful 0xFA Command Failed 0xB0 Command Successful 0xFA Command Failed 0xB1 Command Successful 0xFA Command Failed 1st Returned Byte Data 2nd Returned Byte 0xB2 Command Successful 0xFA Command Failed 0xB3 Command Successful 0xFA Command Failed 0xB4 Command Successful 0xFA Command Failed 0xB5 Command Successful 0xFA Command Failed 0xD0 Command Successful 0xFA Command Failed 0xD1 Command Successful 0xFA Command Failed 1st Returned Byte Major Revision 2nd Returned Byte Minor Revision 3rd Returned Byte 0xD2 Command Successful 0xFA Command Failed 0x00 Pin P# Low 0x01 Pin P# High 0xFA Command Failed 0xF0 Command Successful 0xFA Command Failed
Packet Read*
Memory Address
2-Wire Start* (and Repeated Start) 2-Wire Write Byte*
0x00, Ignored Data 0x00-0xFF Valid Acknowledge 0x01 ACK 0x00 NACK
2-Wire Read Byte*
0xA2
2-Wire Stop* Toggle SCL 9 Times
0xA3 0xA4
0x00, Ignored 0x00, Ignored Device Address 0x00-0xFE Even Values Only 0x00 Disable 0x01 Enable 0x00 Pulse Slow 0x01 Pulse Fast
Set Packet Device Address* Pulse Enable/Disable (Available after Rev 1.1) Pulse Fast/Slow (Available after Rev 1.1)
0xA5
0xC0 0xC1
Read Revision (Available after Rev 2.0)
0xC2
0x00, Ignored
Bit I/O Read**
0xE# # determines pin to read. (See Table 2) 0xF#, # determines pin to write. (See Table 2)
0x00, Ignored
Bit I/O Write**
Write Pin P# 0x00 Low 0x01 High
*See Using the DS3900 with 2-Wire Devices section. **See Using the DS3900's General-Purpose Bit I/O Signals section.
_____________________________________________________________________
5
Serial Communications Module For Evaluation Kits DS3900
Table 2. Bit I/O Addresses
BIT I/O PIN ADDRESS # 1 2 3 4 5 6 7 8 9 A B DS3900 PIN P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 2.0 DSIO r2.0 Major rev = 2 Minor rev = 0 Packet read and write, packet address, and read revision commands added. 1.1 DSIO r1.1 1.0 DSIO r1.0
Table 3. DS3900 Revisions
REVISION DS3900 BANNER DESCRIPTION Original Issue. P3 is not utilized for the pulse function, it is opencollector I/O only. The pulse functions were added, changing P3's primary function. Commands 0xC0 and 0xC1 were added.
Using the DS3900 with 2-Wire Devices There are two modes that can be used to communicate with 2-wire devices. There is an individual command mode that allows the PC to control exactly what is written over the 2-wire bus, and a packet-based mode that automatically sends the start, device address, data address, and the stop commands. When using the individual command mode, the PC sends out individual commands to issue 2-wire start conditions, stop conditions, write data, and read data with or without acknowledgement. After each command is sent, the DS3900 executes the command and returns the individual 2-wire command's acknowledgement code. If an error occurs, the DS3900 will return 0xFA. For a complete listing of commands see Table 1. To help with using the individual commands, two examples showing writing to and reading from a DS1803 are shown in Tables 4 and 5. The assumption made for addressing the DS1803 is that all three addressing pins (A0, A1, and A2) are grounded. Packet mode was added in revision 2.0 of the firmware, and it is supported by 3 new commands: Set Packet Device Address (0xA5); Packet Write (0x8%); and Packet Read (0x9%). The Set Packet Device Address command is used to set the 2-wire device address used by the Packet Read and Packet Write commands. The Set Packet Device Address command should be called before any packet reads or writes to ensure that communications are initiated at the intended device address. Once the packet device address is set, it will remain set until it is changed again by calling the Set Packet Device Address function, or the power is cycled. Upon initial power-up, this value is indeterminate, so it should be reset to the desired value when there is any doubt
6
about its current state. If the value is successfully changed, the DS3900 will return an acknowledgement of 0xB5, and if an error occurs, 0xFA will be returned. Note: The value sent to the DS3900 with the Set Packet Device Address command should always be an even value (e.g. 0xA0, 0xA2). The DS3900 automatically controls the read/write bit of the device address during packet read and write operations. Failure to send even values will result in communication problems. The Packet Write command allows up to 16 data bytes to be sent from the PC to a 2-wire device with a single command. The data will be written to the device address set using the Set Packet Device Address command. To initiate a Packet Write command, the first byte sent to the DS3900 is 0x8%, where % is one less than the number of bytes to be written (e.g. 0x80 hex writes one byte). The second byte sent to the DS3900 is the starting memory address to write the data, which is followed immediately by %+1 data bytes. Once the DS3900 has received the entire packet of data, it will begin sending it to the 2-wire device. The Packet Write command monitors the 2-wire communication to ensure that the 2-wire device is acknowledging every byte of the data transmission. If every byte of the Packet Write is acknowledged, the DS3900 sends 0x8% back to the PC. If all bytes are not acknowledged, the DS3900 returns 0xFA. Because the Packet Write forces the following order of events during the 2-wire communication to be: start condition, write the device address, write the memory address, write the data[1...16], stop condition, it may not work with all devices. Use the individual 2-wire commands if the packet write is not compatible with a particular 2-wire device.
_____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
Table 4. Example of Writing to a DS1803
SEQ # 1 SEND START COMMAND, WRITE 0x23 TO POT 0, AND 0X34 TO POT 1, SEND STOP COMMAND 1ST BYTE SENT 0xA0 2ND BYTE SENT 0x00 Place holder 0x50 Data 1ST BYTE RETURNED 2ND BYTE RETURNED 0xB0 Command ack 0xB1 Command ack None DESCRIPTION 2-wire start Send 0x50 over 2-wire bus (send write DS1803 addr) Send 0xA9 over 2-wire bus (write pot 0 command) Send 0x23 over 2-wire bus (write 0x23 to pot 0) Send 0x34 over 2-wire bus (write 0x23 to pot 1) 2-wire stop
2
0xA1
None
3
0xA1
0xA9 Data
0xB1 Command ack
None
4
0xA1
0x23 Data
0xB1 Command ack
None
5
0xA1
0x34 Data 0x00 Place holder
0xB1 Command ack 0xB3 Command ack
None
6
0xA3
None
Example: Sending the byte sequence {0x82, 0x20, 0x45, 0x67, 0x89} to DS3900 causes it to: 1. Send a 2-wire Start condition. 2. Write the device address R/W =0 (previously set using Set Packet Device Address). 3. Write the memory address (0x20). 4. 5. 6. 7. 8. Write data 0x45 (to address 0x20). Write data 0x67 (to address 0x21). Write data 0x89 (to address 0x22). Send a 2-wire Stop condition. If the 2-wire device acknowledges all bytes of the data transmission, the DS3900 will return (0x82); otherwise it will return an error code (0xFA).
The Packet Read command allows up to 16 data bytes to be read with a single 2-byte instruction. The read operation will be sent to the device operating at the device address set using the Set Packet Device Address command. The first byte sent for a Packet Read command is 0x9%, where % is one less than the number of bytes to read (e.g. 0x95 reads 6 bytes). The second byte sent determines the memory address to begin reading from within the device that is being addressed. After the second byte is received, the DS3900 will begin a dummy write cycle that will address the part as if writing, and write out the device
address followed by the memory address. Then a restart condition is generated, and the device's read address is sent to start the read operation. The DS3900 will begin reading the data from the 2-wire part and sending it back to the PC. The DS3900 will acknowledge all but the last data byte sent from the 2-wire part. The last byte is Not Acknowledged, which is a standard 2-wire practice. Once it has read %+1 data bytes and sent them to the PC, the DS3900 will send 0x9% if the read occurred without error, or 0xFA if a problem did occur. Example: Sending the byte sequence {0x91, 0x20} to the DS3900 will cause it to: 1. Send a 2-wire Start command. 2. Write the device address R/W =0 (set previously using Set Packet Device Address). 3. Write the memory address 0x20. 4. Send a 2-wire Start command (repeated-start). 5. Write the device address R/W =1 (set previously using Set Packet Device Address). 6. Read the data (at address 0x20), send 2-wire Acknowledge on 9th clock cycle, and send the data read back to the PC. 7. Read the data (at address 0x21), send 2-wire Not Acknowledge on 9th clock cycle, and send the data read back to the PC.
7
_____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
Table 5. Example of Reading from a DS1803
SEQ # 1 SEND START COMMAND, READ 0x23 FROM POT 0 AND 0x34 FROM POT 1, SEND STOP COMMAND 1ST BYTE SENT 0xA0 2ND BYTE SENT 0x00 Place holder 0x51 Data 1ST BYTE RETURNED 0xB0 Command ack 0xB1 Command ack 2ND BYTE None DESCRIPTION 2-wire start Send 0x51 over 2-wire bus (send read DS1803 addr) Read with nack 1st return byte 0x23 (data from pot 0) 2nd return byte 0xB2 (command ack) Read with nack 1st return byte 0x34 (data from pot 1) 2nd return byte 0xB2 (command ack) 2-wire stop
2
0xA1
None
3
0xA2
0x01 Read with ack
0x23 Data
0xB2 Command ack
4
0xA2
0x00 Read with nack
0x34 Data
0xB2 Command ack
5
0xA3
0x00 Place holder
0xB3 Command ack
None
Send a 2-wire Stop command. If the transmission occurred without errors detected, return the command acknowledgement (0x91), else return the error code (0xFA). Because the Packet Read command assumes that the memory address should be sent out with a dummy write cycle before a restart with the read device address, it may not work with some devices. In cases where it is not appropriated, use the individual 2-wire commands. Resetting the 2-Wire Bus The only 2-wire command that is in Table 1 and not listed in either example of the 2-wire section is toggle SCL nine times. This is used to reset the 2-wire bus in the event that there is a communications breakdown while the slave is holding SDA low. When a slave holds SDA low, a stop command cannot be issued since it requires SDA to transition from lowto-high while the clock is high. For the transition from low-to-high to happen, both the slave and the master have to release their SDA pulldown transistors. To reset the bus, send out the command to toggle SCL nine times followed by a stop command. This clocks the 2wire bus nine times, so if a read operation was disturbed, the slave is clocked until it is expecting acknowledgement from the master. At the time it is
8
8. 9.
expecting acknowledgement, it releases the bus, and is clocked at least once more, providing a NAck condition. Once the nine clock cycles are sent, the slave should no longer be controlling SDA signal. This allows the DS3900 to issue a stop command. When the stop command occurs, all slaves on the 2-wire bus should respond to their addresses. The Pulse Commands The pulse commands enable or disable the pulse function, and set the pulse rate to either fast (7.37Hz) or slow (0.92Hz). If P3 was last used as an input, P3 must be written to either a 1 or a 0 to make it appear as an output for the pin to toggle. If left as an input, the register controlling P3 will toggle, but the pin will not because the driver is not enabled. On power-up P3 is set to an output, and the pulse will begin at the slow rate. Using the DS3900's General-Purpose Bit I/O Signals Reading and writing individual DS3900 pins is done by using the bit I/O commands 0xE# and 0xF# respectively, where # (Table 2) represents an individual pin on the DS3900. For example, the command 0xE2, places the P2 output driver in a high-impedance state and reads the pin as an input. Writing to a pin sets it to the desired state and leaves it there until it is written to the opposite state or a read command issued. When a read is performed, the driver
_____________________________________________________________________
Serial Communications Module For Evaluation Kits
is tristated and the input is read. The pin remains in a high-impedance state until a write operation is performed. As mentioned before, all I/O pins, except P3, are inputs on power-up. Note: If an I/O pin is being used for both reads and writes, take care to avoid bus contention. Since software can only change a single pin at a time, the DS3900 is much slower when communicating using the bit I/O commands. For some applications, this is acceptable since the 57600 baud communications along with the streamline 2-byte command system allow pins to be changed hundreds of times a second. If the design requires higher performance than 100s of pin changes per second the DS3900 may not be a good choice for that general-purpose bit I/O application. communication. In the event that the application board already has pullups present, disconnect the integral pullups by placing the switches in the off position. This eliminates the extra (unnecessary) pullup strength, because having both the integral pullup and the application board's pullup on at the same time could potentially cause problems for either the DS3900 or the 2-wire slaves, which are required to pull the buses low. Additionally, when P10 and P11 are used as bit I/O pins, it can be advantageous to disconnect the pullups to reduce the through current when either signal is driven low. For bit I/O operations, writing the signal to a `1' enables a PMOS driver that drives the signal high. However, it is also possible to use P10 and P11 as open-collector I/O pins by enabling the pullups and performing only read and write `0' operations. As long as a `1' is never written to P10 or P11 it appears as an open-collector output. This is how the firmware manufactures the open-collector output for the 2-wire interface.
DS3900
Application Information
Decoupling the DS3900's VCC Supply
The DS3900 has decoupling on its PC board, but due to the high periodic current draw of the RS232 transceiver. It is recommended to place a decoupling capacitor (47F, Tantalum capacitor) next to the connector on the board that the DS3900 will be mounted.
Intended Use
The DS3900 module and the bundled software are intended only to be used to evaluate Maxim and Dallas Semiconductor's integrated circuits. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall Dallas Semiconductor be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
Using the Integral Pullups
Moving the switches to the on (labeled "ON" on the switch) position enables the integral pullups. This connects 4.7k pullup resistors to the SDA and SCL buses, and it eliminates the need to place external pullup resistors on the application board for 2-wire
_____________________________________________________________________
9
Serial Communications Module For Evaluation Kits DS3900
Troubleshooting
SYMPTOM CAUSES Power might not be applied to the DS3900, DTR might not be in the correct state for the DS3900 to operate, the LED might be connected improperly, or P3 might have been used previously by the software as an input. SOLUTION(S) Ensure that power is applied to the circuit and that DTR is on. Verify that LED is connected properly. If none of the above works, cycle power or issue a bit I/O write to P3 to ensure that P3 is enabled as an output. Make sure the serial cable is connected from the PC to the DS3900's DB9 connector. If multiple serial ports are present on the back of the PC, ensure the proper port has been connected. Ensure the DS3900 is well seated on the application board and that power has been applied. Check for other software that may be controlling the serial port. Verify the DS3900 is not held in reset by the DTR signal. Verify the pullups for SDA and SCL are on if the application board does not have pullups. Verify the 2-wire device is being addressed correctly by the software. Verify power is applied to the both the DS3900 and the 2-wire device. Verify the serial cable is properly connected from the PC to the DS3900. Verify the DS3900 is properly seated on the application board. Try to issue a bit I/O read command to the pin that is stuck low, and the bus will be freed by the DS3900. If SDA remains low, a slave device is controlling it. Reset the 2-wire bus (clock the bus nine times, and issue a stop command) or cycle power to the application board to free the pin. Disable the pulse with software, or do not use P3 for an input or output.
Pulse function not operating properly
DS3900 not found by software after reset
The serial cable is not connected, the DS3900 is not firmly seated on the application board, power is not applied to DS3900, or another piece of software is controlling the serial port.
2-wire communication errors or general communication errors
Either the PC cannot communicate with the DS3900, or the DS3900 cannot communicate with the 2-wire device.
SDA or SCL line is stuck low
If only SDA is held low, the 2-wire bus might have been disturbed while a slave was controlling the bus during a read operation. Additionally, P10 and P11 may have been used as bit I/O pins and the last program left the pins in a low state. P3 is being used, and the pulse function is operating and changing the state of the pin.
Bit I/O operation not working as expected
For technical support email MixedSignal.Apps@dalsemi.com.
10
____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
VCC 2.2k MA2YD15 RA2 JP1 P1 P2 P3 (N.C.) RESET GND P4 P5 GND 2 x 8 FEMALE HEADER RB0 RB1 RB2 RA3 RA4 MCLR VSS VSS U1 PIC16LF628 (TSSOP) OSC1 OSC2 RA1 RA0 4.7k
VCC
4.7k CT2192MST
JP2 CTX501 P11-SDA 27pF P10-SCL GND CRYSTAL 3.68MHz 27pF 0.1F VCC 1.0F VCC P9 P8 P7 P6 2 x 8 FEMALE HEADER
VCC VCC RB7 RB6 RB5
RB3
RB4
1F
VCC
EN C1+ 0.1F V+ C1C2+ 1F C2V1F T2OUT R2IN R2OUT U2 MAX3223 (SSOP)
FORCEOFF VCC GND T1OUT R1IN R1OUT FORCEON T1IN T2IN INVALID 0.1F JP3 1 6 2 3 4 9 5 DB9 7 8
Figure 2. DS3900 Schematic ____________________________________________________________________ 11
Serial Communications Module For Evaluation Kits DS3900
TOP LAYOUT
P1 P2 P3 (N.C.) RESET GND P4 P5 GND
P11 P10 GND VCC P9 P8 P7 P6
BOTTOM LAYOUT
Figure 3. DS3900 Layout
12
____________________________________________________________________
Serial Communications Module For Evaluation Kits DS3900
DS3900 R1.0
U1 X1
C4 1.344" 1.469" 1.584"
C6
C1 SCL JP1 SDA 1.300" 0.75" 0.84" 0.43" 0.312" 0.312" 0.25"
C5 R2 R3 JP2
0.550"
0.100" 0.025" 0.25" 0.43" 0.84"
0.100" 0.20" 1.200"
0.025"
1.56"
1.12"
0.80"
Figure 4. DS3900 Dimensions
Note: The DS3900 mates with standard 2.54mm (0.100in) 2 x 8 male header connectors. These connectors do not come standard with the board (see Figure 5).
____________________________________________________________________
13
Serial Communications Module For Evaluation Kits DS3900
0.100" 0.025", 16 places
0.025" 16 places
0.100" 8 places 0.240",16 places 1.200"
Figure 5. Recommended PC Board Connection for DS3900
14
____________________________________________________________________
Serial Communications Module For Evaluation Kits
Typical Operating Circuit
DS3900
PC
OSCILLATOR OUTPUTS
OUT1 OUT0 VCC
SCL SDA CTRL1
DS1077
GND VCC SERIAL PORT VCC CTRL0
P1 LED P2 P3 N.C. GND P4 P5 GND
DB9
P11-SDA P10-SCL GND VCC SDA 10F SCL A0 A1 A2 WP GND VCC H0 N.C. H1 L1 N.C. L0 VARIABLE RESISTORS VCC MORE 2-WIRE DEVICES
DS3900
P9 P8 P7 P6
DS1848
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 ____________________ 15 (c) 2004 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.
is a registered trademark of Dallas Semiconductor Corporation.


▲Up To Search▲   

 
Price & Availability of DS3900EVKIT

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X